package cn.good.yan.t3.p2;

import org.springframework.stereotype.Component;

/**
 * 3. AOP  - AspectJ注解
 * @author shengren.yan
 * @create 2023-09-10
 */
@Component // 交给Spring进行创建管理
public class User2 {
    public String add(String a, String b) throws Exception {
        System.out.println("add... 当前原始的逻辑----");
        throw new Exception("异常");
//        return "ok";
    }
}
